﻿using Minotaur.App.Modules.FlowProcess.Control;
using Minotaur.App.Modules.FlowProcess.ViewModels;
using System.Windows.Controls;

namespace Minotaur.App.Modules.FlowProcess.Views
{
    /// <summary>
    /// Interaction logic for ProcessDesign
    /// </summary>
    public partial class ProcessDesigned : UserControl
    {
        public ProcessDesigned()
        {
            InitializeComponent();
        }

        private void ProcessDesign_Loaded(object sender, System.Windows.RoutedEventArgs e)
        { 
            ProcessDesignedViewModel viewModel=this.DataContext as ProcessDesignedViewModel;
            viewModel.ProcessDesignCanvas = this.FlowDesignCanvas;
            viewModel?.InitData();
        }
    }
}
